package com.smart.eleven.domain;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * service
 *
 * @author junrui.wang
 * @create 2019/8/1
 */
@Service
public class BBTForumServiceImpl implements BBTForumService {
    @Resource
    private BBTForumDao dao;

    public void addBBT(BBTForum forum){
        dao.addBBT(forum);
    }

    public void updateBBT(String id, BBTForum bbtForum){
        dao.updateBBT(id, bbtForum);
    }

    public BBTForum getBBT(String id){
        return dao.getBBT(id);
    }

    public boolean deleteBBT(String id) {
        return dao.deleteBBT(id);
    }
}
